<?php
/*
 * 点播注入测试
 * Created on 2013-8-10
 *
 */
ini_set('display_errors',1);
set_time_limit(0); 
include_once dirname(dirname(__FILE__)).'/mgtv_init.php';
include_once dirname(dirname(__FILE__)).'/fjyd/init.php';
$action = $_GET['action'];
if($action=='add'){
	
/*
$vod_info = array( 
'nns_id' => "123" ,
'nns_name' => "情书第二季 第17集" ,
//'nns_vod_id' => "999" ,
'nns_index' => "16" ,
'nns_time_len' => "2995" ,
'nns_summary' => "张英兰摆脱“无反应小姐”称号，护花使者屡次遭拒。TIM改变舞蹈风格，大玩可爱。" ,
'nns_create_time' => "2013-04-28 15:34:25" ,
'nns_modify_time' => "2013-05-10 12:11:17" ,
'nns_image' => "",
'nns_play_count' => "",
'nns_score_total' => "",
'nns_score_count' => "",
'nns_import_id' => "267552" ,
'nns_import_source' => "mgtv" ,
'nns_actor' => "张英兰/TIM" ,
'nns_director' => "姜虎东" ,
'nns_status' => "add" ,
'nns_new_media' => "",
'nns_series_flag' => 0 ,
'nns_category_id' => "10000001" ,
'nns_alias_name' => "",
'nns_area' => "韩国" ,
'nns_language' => "国语" ,
'nns_show_time' => "2005-01-01" ,
'nns_kind' => "综艺" ,
'nns_keyword' => "情书第二季/综艺/韩国" ,
'nns_task_id' => "567");

    c2_task_model::add_vod($vod_info); 
    */
    content_task_model::vod('8ca34d795e874d8cf5c7ea6cec38d6de');

}else if($action=='del'){
	$vod_info = array('nns_id'=>'594570abf5a99f653c62f46021e5a7c4','nns_task_id'=>'5678');
	c2_task_model::delete_vod($vod_info); 
	$vod_info = array('nns_id'=>'edac4baae53e752680052d8a130a9750','nns_task_id'=>'5678');
	c2_task_model::delete_vod($vod_info); 
	$vod_info = array('nns_id'=>'bd9909aca8c80657613b4cc4f381ca12','nns_task_id'=>'5678');
	c2_task_model::delete_vod($vod_info); 
	$vod_info = array('nns_id'=>'2348020ab5c6202a661758fd870dc228','nns_task_id'=>'5678');
	c2_task_model::delete_vod($vod_info); 
	$vod_info = array('nns_id'=>'fe7980a75dbf7299961746d4d07e856c','nns_task_id'=>'5678');
	c2_task_model::delete_vod($vod_info); 
	$vod_info = array('nns_id'=>'a0cf6ba35ca19c7e0bf1701703749d76','nns_task_id'=>'5678');
	c2_task_model::delete_vod($vod_info); 					
	//content_task_model::delete_vod('ad7323991c2b16ddd976cadd155cb6e0');
}else if($action=='del_all'){
	content_task_model::delete_all_vod();
	
	
}
echo 'ok'.time();
?>
